import request from '@/LC/request';

export default {
	index: (data) =>
		request({
			url: '/api/index/index',
			method: 'GET',
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	numbernew: (data) =>
		request({
			url: '/api/ticket/numbernew',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
	numberlist: (data) =>
		request({
			url: '/api/ticket/numberlist',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),	

articlelist: (data) =>
		request({
			url: '/api/ticket/articlelist',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),	
	category: (data) =>
			request({
				url: '/api/ticket/category',
				method: 'GET',
				data,
				custom: {
					showLoading: false,
					auth: false,
				},
			}),		
			
			articleshow: (data) =>
		request({
			url: '/api/ticket/articleshow',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
		articlecollect: (data) =>
		request({
			url: '/api/ticket/articlecollect',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	articlepay: (data) =>
		request({
			url: '/api/ticket/articlepay',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),	
	investList: (data) =>
		request({
			url: '/api/investList',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),	
	investRecord: (data) =>
		request({
			url: '/api/investRecord',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),	
	invest: (data) =>
		request({
			url: '/api/invest/'+data.id,
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),	
	investSell: (id) =>
		request({
			url: '/api/investSell/'+id,
			method: 'GET',
			
			custom: {
				showLoading: true,
				auth: true,
			},
		}),				
	currencyRank: (type) =>
		request({
			url: '/api/currencyRank/' + type,
			method: 'GET',

			custom: {
				showLoading: true,
				auth: false,
			},
		}),
		market: (data) =>
		request({
			url: '/api/market',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
		collect: (id) =>
		request({
			url: '/api/collect/'+id,
			method: 'GET',
			
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		marketid: (id) =>
		request({
			url: '/api/market/'+id,
			method: 'GET',
			
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	
		currencyTradeid: (data) =>
		request({
			url: '/api/currencyTrade/'+data.id,
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	
		currencyRecord: (data) =>
		request({
			url: '/api/currencyRecord',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
		product: (data) =>
		request({
			url: '/api/product',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
		productid: (id) =>
		request({
			url: '/api/product/'+id,
			method: 'GET',
			
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		orderRecord: (data) =>
		request({
			url: '/api/orderRecord',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		collect: (id) =>
		request({
			url: '/api/collect/'+id,
			method: 'GET',
			
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		marketIndicators: (data) =>
		request({
			url: '/api/marketIndicators',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		zsgkData: () =>
		request({
			url: '/api/zsgkData',
			method: 'GET',
			
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		industryStatus: () =>
		request({
			url: '/api/industryStatus',
			method: 'GET',
			
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		newsHot: () =>
		request({
			url: '/api/newsHot',
			method: 'GET',
			
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		stock: (data) =>
		request({
			url: '/api/stock',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		stockId: (id) =>
		request({
			url: '/api/stock/'+id,
			method: 'GET',
		
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		newsHot: (id) =>
		request({
			url: '/api/newsHot',
			method: 'GET',
			
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		newsID: (data) =>
		request({
			url: '/api/news/'+data.id,
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		largeStockBuy: (data) =>
		request({
			url: '/api/largeStockBuy/'+data.id,
			method: 'POST',
			data,
			custom: {
				pass:true,
				showLoading: true,
				auth: true,
			},
		}),
		stockOrder: (data,loading) =>
		request({
			url: '/api/stockOrder',
			method: 'GET',
			data,
			
			custom: {
				showLoading: loading,
				auth: true,
			},
		}),
		largeStockOrder: (data) =>
		request({
			url: '/api/largeStockOrder',
			method: 'GET',
			data,
			
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		stockBuy: (data) =>
		request({
			url: '/api/stockBuy/'+data.id,
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		stockSell: (data) =>
		request({
			url: '/api/stockSell/'+data,
			method: 'get',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		news: (data) =>
		request({
			url: '/api/news',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		largeStock: (data) =>
		request({
			url: '/api/largeStock',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		productList: (data) =>
		request({
			url: '/api/productList',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		productOrderRecord: (data) =>
		request({
			url: '/api/productOrderRecord',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		productApplyRecord: (data) =>
		request({
			url: '/api/productApplyRecord',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		productApply: (id) =>
		request({
			url: '/api/productApply/'+id,
			method: 'GET',
		
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		financeRecord: (data) =>
		request({
			url: '/api/financeRecord',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		
		collect: (id) =>
		request({
			url: '/api/collect/'+id,
			method: 'GET',
		
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		userMessageRead: (data) =>
		request({
			url: '/api/userMessageRead',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		leverEnter: (data) =>
		request({
			url: '/api/leverEnter',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		leverGoout: (data) =>
		request({
			url: '/api/leverGoout',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		transferRecord: (data) =>
		request({
			url: '/api/transferRecord',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		zodiac: (data) =>
		request({
			url: '/api/zodiac',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
		
};